package com.learn.api.gateway.web;

import com.learn.api.gateway.model.HandleResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lwt<br>
 * @description <br>
 * @date 2020/8/17
 */
@Slf4j
@RestController
public class FallbackController {

    @RequestMapping("/defaultfallback")
    public HandleResult defaultfallback(){
        log.info("降级操作。。。。");
        return HandleResult.failed("服务超时降级！");
    }
}